package cn.kgc.shiro02.service;

import cn.kgc.shiro02.commons.ResponseResult;
import cn.kgc.shiro02.dto.RolePageDTO;
import cn.kgc.shiro02.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 *
 */
public interface RoleService extends IService<Role> {

    ResponseResult selectRolePage(RolePageDTO rolePageDTO);

    ResponseResult selectPermissionByRoleId(Integer roleId);

    ResponseResult addRolePermission(Integer roleId, String permissionIds);


    ResponseResult saveOrUpdateRole(Role role);

    ResponseResult deleteByIds(String ids);
}
